let fs = require('fs');
fs.writeFile(__dirname + '/05-copy.txt', '我准备拷贝文件', () => {});
fs.appendFile(__dirname + '/05-copy.txt', '\n我继续追加信息到文件中', (err) => {});
fs.stat(__dirname + '/04-stat.txt', (err, stats) => {
    console.log(stats.size);
    console.log(stats.birthtime);
    console.log(stats.isFile());
    console.log(stats.isDirectory());
})
fs.copyFile(__dirname + '/05-copy.txt', __dirname + '/./05-copyFile.txt', () => {});